package dk.eal.kbr.mule.calenderhandler;

import java.sql.Timestamp;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@XmlRootElement(namespace = "http://kbr.eal.dk/calender/types", name = "appointment")
public class CalenderItem {
	protected String webTidItemId;
	protected String userId;
	protected Date start;
	protected Date end;
	protected String subject;
	protected String location;
	protected String body;
	protected int doDelete; // 1=Delete 0=do NOT delete
	protected int isActive; // 1=Active 0=in Active (deleted)


	public String getWebTidItemId() {
		return webTidItemId;
	}

	public void setWebTidItemId(String webTidItemId) {
		this.webTidItemId = webTidItemId;
	}

	public int getDoDelete() {
		return doDelete;
	}

	public void setDoDelete(int doDelete) {
		this.doDelete = doDelete;
	}

	public int getIsActive() {
		return isActive;
	}

	
	public void setIsActive(int isActive) {
		this.isActive = isActive;
	}


	public Date getStart() {
		return start;
	}

	public Timestamp getStartTimestamp() {
		Timestamp t = new Timestamp(start.getTime());
		return t;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public Date getEnd() {
		return end;
	}

	public Timestamp getEndTimestamp() {
		Timestamp t = new Timestamp(end.getTime());
		return t;
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
}
